package demo2;

import demo1.Test1;

/**
 * Created with IntelliJ IDEA.
 * User: 12629
 * Date: 2022/2/23
 * Time: 21:23
 * Description:
 */
class Student {

}

class Teacher {

}

class School {
    public Student[] students;
    public Teacher[] teachers;
}
public class Test3 extends Test1{
    public void func() {
        System.out.println("不同包中的子类："+super.b);
    }

    public static void main(String[] args) {
        /*Test1 test1 = new Test1 ();
        System.out.println("同一个包中的不同类："+test1.b);*/
        Test3 test3 = new Test3();
        test3.func();
    }
}
